<?php
	//----------------------- INPUT ELEMENTS -------------------//
	$name 			= $this->formText ( 'name', $this->Item['name'], array ('class' => 'txtlong') ) . '<div class="view_error" id="view_name"></div>';
	
	$option 		= array('Không','Có');
	if(isset($this->Item['status'])){
		$trangthai 	= $this->Item['status'];
	}else{
		$trangthai 	= 1;
	}
	$status 		= $this->formRadio('status',$trangthai,null,$option, ' ');
	
	if(isset($this->Item['order'])){
		$order 		= $this->Item['order'];
	}else{
		$order 		= 255;
	}
	$order 			= $this->formText ('order', $order, array ('class' => 'txtshort' ) );
	$content 		= $this->cmsEditor('content',htmlspecialchars_decode($this->Item['content']),array('toolbar'=>'MyToolbar', 'language'=>'vi', 'skin' => 'v2'), 'auto', 200, true, 500, false);
?>
<div class="left_content">
	<?php echo $this->render($this->arrParam['controller'] . '/toolbar/left.php');?>
</div>

<div class="right_content">
	<div class="appContent">
		<form action="" method="post" name="appForm" enctype="multipart/form-data">
			<?php echo $this->render($this->arrParam['controller'] . '/toolbar/index.php');?>
			<?php
				//-------------------- SESSAGES ERROR ------------------
				if(count($this->messageError)>0){
					foreach ($this->messageError AS $key => $val){
						echo '<div class="listError" data="'.$key.'" rel="' . $val . '"></div>';
					}
					echo '<div class="thongbaoError goc5">Có lỗi trong quá trình xử lý.</div>';
				} 
			?>
			<div id="tabs">
				<ul>
					<li><a href="#tabs-1">Thông tin chung</a></li>
				</ul>
				<div id="tabs-1">
					<div class="tblForm">
						<div class="tbl_content">
							<table class="tbl">
								<tr>
									<td class="label">Tên chức vụ <span class="red">*</span></td>
									<td><?php echo $name;?></td>
								</tr>
								<tr>
									<td class="label">Thứ tự</td>
									<td><?php echo $order;?></td>
								</tr>
								<tr>
									<td class="label">Hiển thị</td>
									<td><?php echo $status;?></td>
								</tr>
								<tr>
									<td class="label">Nội dung</td>
									<td><?php echo $content;?></td>
								</tr>
							</table>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
<div class="clr"></div>	

